package com.weitu.occupationalHealth.facility.service.impl;
import com.weitu.occupationalHealth.facility.mapper.FacilityMapper;

import java.util.List;
import java.util.Map;

import com.weitu.occupationalHealth.facility.service.FacilityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class FacilityServiceImpl implements FacilityService {
    @Autowired
    private FacilityMapper facilitieMapper;

    @Override
    public Map selectById(String id) {
        return this.facilitieMapper.selectById(id);
    }

    @Override
    public int deleteById(String id) {
        return this.facilitieMapper.deleteById(id);
    }

    @Override
    public int updateByIdSelective(Map record) {
        return this.facilitieMapper.updateByIdSelective(record);
    }

    @Override
    public int insertSelective(Map record) {
        return this.facilitieMapper.insertSelective(record);
    }

    @Override
    public List<Map> selectAllFacilities(Map map) {
        return this.facilitieMapper.selectAllFacilities(map);
    }

    @Override
    public int selectFacilitiesCount(Map map) {
        return this.facilitieMapper.selectFacilitiesCount(map);
    }

    @Override
    public List<Map<String, Object>> selectAnalysis(Map<String, Object> map) {
        return this.facilitieMapper.selectAnalysis(map);
    }
}